<?php
class AdIndexAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'admin';
	}

	public function execute()
	{
		$adService					= new AdService();
		$this->data['data'] 		= $adService->getAdList(false);
		$adConfig					= C('LtConfig')->get('ad');
		$this->data['positions']	= $adConfig['position'];
		
		$this->data['menu']		= 'ad';
		$this->data['submenu']	= 'ad_index';
	}
}
